project(cleargpio)

include_directories(${PROJECT_SOURCE_DIR}/../../robot_client/src/common)
include_directories(${PROJECT_SOURCE_DIR}/../../robot_client/src/include)
set(RC_GPIO_DIR ${PROJECT_SOURCE_DIR}/../../robot_client/src/sources/rc_gpio)

set(CLEAR_GPIO_SOURCE
        clear_gpio.cpp
        ${RC_GPIO_DIR}/c_gpio.cpp
        ${RC_GPIO_DIR}/cpuinfo.cpp
        ${RC_GPIO_DIR}/event_gpio.cpp
        ${RC_GPIO_DIR}/soft_pwm.cpp
        )
add_executable(cleargpio ${CLEAR_GPIO_SOURCE})
target_link_libraries(cleargpio
        boost_system
        glib-2.0
        stdc++
        pthread
        )